Package pl.wendigo.chrome.api.target

Contains DevTools Protocol Target domain implementation accessible via TargetDomain class.

Types

ActivateTargetRequest
Link copied to clipboard
data class ActivateTargetRequest(targetId: TargetID)
Represents request frame that can be used with Target#activateTarget operation call.
AttachedToTargetEvent
Link copied to clipboard
data class AttachedToTargetEvent(sessionId: SessionID, targetInfo: TargetInfo, waitingForDebugger: Boolean) : Event
Issued when attached to target because of auto-attach or attachToTarget command.
AttachToBrowserTargetResponse
Link copied to clipboard
data class AttachToBrowserTargetResponse(sessionId: SessionID)
Represents response frame that is returned from Target#attachToBrowserTarget operation call.
AttachToTargetRequest
Link copied to clipboard
data class AttachToTargetRequest(targetId: TargetID, flatten: Boolean?)
Represents request frame that can be used with Target#attachToTarget operation call.
AttachToTargetResponse
Link copied to clipboard
data class AttachToTargetResponse(sessionId: SessionID)
Represents response frame that is returned from Target#attachToTarget operation call.
CloseTargetRequest
Link copied to clipboard
data class CloseTargetRequest(targetId: TargetID)
Represents request frame that can be used with Target#closeTarget operation call.
CloseTargetResponse
Link copied to clipboard
data class CloseTargetResponse(success: Boolean)
Represents response frame that is returned from Target#closeTarget operation call.
CreateBrowserContextRequest
Link copied to clipboard
data class CreateBrowserContextRequest(disposeOnDetach: Boolean?, proxyServer: String?, proxyBypassList: String?)
Represents request frame that can be used with Target#createBrowserContext operation call.
CreateBrowserContextResponse
Link copied to clipboard
data class CreateBrowserContextResponse(browserContextId: BrowserContextID)
Represents response frame that is returned from Target#createBrowserContext operation call.
CreateTargetRequest
Link copied to clipboard
data class CreateTargetRequest(url: String, width: Int?, height: Int?, browserContextId: BrowserContextID?, enableBeginFrameControl: Boolean?, newWindow: Boolean?, background: Boolean?)
Represents request frame that can be used with Target#createTarget operation call.
CreateTargetResponse
Link copied to clipboard
data class CreateTargetResponse(targetId: TargetID)
Represents response frame that is returned from Target#createTarget operation call.
DetachedFromTargetEvent
Link copied to clipboard
data class DetachedFromTargetEvent(sessionId: SessionID, targetId: TargetID?) : Event
Issued when detached from target for any reason (including detachFromTarget command).
DetachFromTargetRequest
Link copied to clipboard
data class DetachFromTargetRequest(sessionId: SessionID?, targetId: TargetID?)
Represents request frame that can be used with Target#detachFromTarget operation call.
DisposeBrowserContextRequest
Link copied to clipboard
data class DisposeBrowserContextRequest(browserContextId: BrowserContextID)
Represents request frame that can be used with Target#disposeBrowserContext operation call.
ExposeDevToolsProtocolRequest
Link copied to clipboard
data class ExposeDevToolsProtocolRequest(targetId: TargetID, bindingName: String?)
Represents request frame that can be used with Target#exposeDevToolsProtocol operation call.
GetBrowserContextsResponse
Link copied to clipboard
data class GetBrowserContextsResponse(browserContextIds: List<BrowserContextID>)
Represents response frame that is returned from Target#getBrowserContexts operation call.
GetTargetInfoRequest
Link copied to clipboard
data class GetTargetInfoRequest(targetId: TargetID?)
Represents request frame that can be used with Target#getTargetInfo operation call.
GetTargetInfoResponse
Link copied to clipboard
data class GetTargetInfoResponse(targetInfo: TargetInfo)
Represents response frame that is returned from Target#getTargetInfo operation call.
GetTargetsResponse
Link copied to clipboard
data class GetTargetsResponse(targetInfos: List<TargetInfo>)
Represents response frame that is returned from Target#getTargets operation call.
ReceivedMessageFromTargetEvent
Link copied to clipboard
data class ReceivedMessageFromTargetEvent(sessionId: SessionID, message: String, targetId: TargetID?) : Event
Notifies about a new protocol message received from the session (as reported in attachedToTarget event).
RemoteLocation
Link copied to clipboard
data class RemoteLocation(host: String, port: Int)
SendMessageToTargetRequest
Link copied to clipboard
data class SendMessageToTargetRequest(message: String, sessionId: SessionID?, targetId: TargetID?)
Represents request frame that can be used with Target#sendMessageToTarget operation call.
SessionID
Link copied to clipboard
typealias SessionID = String

Unique identifier of attached debugging session.

SetAutoAttachRequest
Link copied to clipboard
data class SetAutoAttachRequest(autoAttach: Boolean, waitForDebuggerOnStart: Boolean, flatten: Boolean?)
Represents request frame that can be used with Target#setAutoAttach operation call.
SetDiscoverTargetsRequest
Link copied to clipboard
data class SetDiscoverTargetsRequest(discover: Boolean)
Represents request frame that can be used with Target#setDiscoverTargets operation call.
SetRemoteLocationsRequest
Link copied to clipboard
data class SetRemoteLocationsRequest(locations: List<RemoteLocation>)
Represents request frame that can be used with Target#setRemoteLocations operation call.
TargetCrashedEvent
Link copied to clipboard
data class TargetCrashedEvent(targetId: TargetID, status: String, errorCode: Int) : Event
Issued when a target has crashed.
TargetCreatedEvent
Link copied to clipboard
data class TargetCreatedEvent(targetInfo: TargetInfo) : Event
Issued when a possible inspection target is created.
TargetDestroyedEvent
Link copied to clipboard
data class TargetDestroyedEvent(targetId: TargetID) : Event
Issued when a target is destroyed.
TargetDomain
Link copied to clipboard
class TargetDomain : Domain
Supports additional targets discovery and allows to attach to them.
TargetID
Link copied to clipboard
typealias TargetID = String
TargetInfo
Link copied to clipboard
data class TargetInfo(targetId: TargetID, type: String, title: String, url: String, attached: Boolean, openerId: TargetID?, canAccessOpener: Boolean, openerFrameId: FrameId?, browserContextId: BrowserContextID?)
TargetInfoChangedEvent
Link copied to clipboard
data class TargetInfoChangedEvent(targetInfo: TargetInfo) : Event
Issued when some information about a target has changed.